package com.graduate.service;

import com.db.mapper.PictureMapper;
import com.db.pojo.Picture;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class PictureServiceImp implements PictureService {
    @Autowired
    private PictureMapper pictureMapper;

    @Override
    public List<Map<String, Object>> getBanner(String limit, String offset) {
        return pictureMapper.getBanner(limit, offset);
    }


    @Override
    public List<Map<String, Object>> getLatelyPic(String relative) {
        return pictureMapper.getLatelyPic(relative);
    }

    @Override
    public int updatePicStatus(String status, String id) {
        return pictureMapper.updatePicStatus(status, id);
    }

    @Override
    public List<Object> getContent(String ids) {
        return pictureMapper.getContent(ids);
    }

    @Override
    public Picture getPictureById(String id) {
        return pictureMapper.getPictureById(id);
    }
}
